package com.upcode.weighing;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@SpringCloudApplication
@EnableFeignClients
@EnableHystrix
@EnableDiscoveryClient
@MapperScan("com.upcode.weighing.mapper")
@EnableAspectJAutoProxy
public class AdminApplication {
    private static Logger logger= LoggerFactory.getLogger(AdminApplication.class);
    public static void main(String[] args) {
        logger.debug("启动");
        try{
            SpringApplication.run(AdminApplication.class, args);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
